<?php get_header(); $options = get_cubic_option(); ?>

<div id="left_col">

 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

 <div class="post">
  <h2 class="title<?php if(!$options['show_date']){ echo ' no_date'; }; ?>"><?php the_title(); ?></h2>
  <?php if ($options['show_date']) : ?>
  <ul class="meta1 cf">
   <li class="post_date"><?php the_time(__('m/d. Y', 'cubic')) ?></li>
   <?php edit_post_link(__('EDIT', 'cubic'), '<li class="post_edit">', '</li>' ); ?>
  </ul>
  <?php endif; ?>
  <div class="post_content cf">
   <?php the_content(__('Read more', 'cubic')); ?>
   <?php wp_link_pages(); ?>
  </div>
  <?php if ($options['show_category'] or $options['show_tag'] or $options['show_author'] or $options['show_comment']) { ?>
  <ul class="meta2 cf">
   <?php if ($options['show_category']) : ?>
   <?php if(has_category()) { ?>
   <li class="post_category"><?php the_category(' , '); ?></li>
   <?php }; ?>
   <?php endif; ?>
   <?php if ($options['show_tag']) : ?>
   <?php the_tags('<li class="post_tags">',' , ','</li>'); ?>
   <?php endif; ?>
   <?php if ($options['show_author']) : ?>
   <li class="post_author"><?php the_author_posts_link(); ?></li>
   <?php endif; ?>
   <?php if ($options['show_comment']) : ?>
   <li class="post_comment"><?php comments_popup_link(__('Write comment', 'cubic'), __('1 comment', 'cubic'), __('% comments', 'cubic')); ?></li>
   <?php endif; ?>
  </ul>
  <?php }; ?>
 </div><!-- END .post -->

 <?php endwhile; endif; ?>

 <?php if ($options['show_comment']) : ?>
 <?php if (function_exists('wp_list_comments')) { comments_template('', true); } else { comments_template(); } ?>
 <?php endif; ?>

 <?php if ($options['show_next_post']) : ?>
 <div id="prev_next_post_single" class="cf">
  <?php previous_post_link( '<p class="prev_post">%link</p>' ); ?>
  <?php next_post_link( '<p class="next_post">%link</p>' ); ?>
 </div>
 <?php endif; ?>

</div><!-- #left_col -->

<?php if($options['layout'] == 'right') { ?>
<div id="right_col">
 <?php get_sidebar(); ?>
</div>
<?php }; ?>

<?php get_footer(); ?>